#define _CRT_SECURE_NO_WARNINGS 1


#include"Heap.h"

void test1()
{
	HP php;
	HPInit(&php);
	int a[] = { 25,15,30,10,70,56 };
	int size = sizeof(a) / sizeof(a[0]);
	for (int i = 0;i < size;i++)
	{
		HPPush(&php, a[i]);
	}
	HPPop(&php);
	while (!HPEmpty(&php))
	{
		int top = HPTop(&php);
		printf("%d ", top);
		HPPop(&php);
	}
	printf("\n");
		
	HPDestroy(&php);
}

int main()
{
	test1();

	return 0;
}